Use Perf To Do Profiling
Meow King January 08, 2024 Updated: January 08, 2024 #profiling #perf #linuxUse rust
project for example:
build the project
record the data
--call-graph dwarf
works best for my experience.
EDIT: 2024-01-09
reason see Debugging support in the Rust compiler
view the data
- perf built-in viewer:
- use firefox profiler Firefox profiler enables you to also view the flamegraph, stack chart too.
then drag-drop the file into the website.
- use hotspot (haven't tried).